package com.collectplus.express.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by joker on 2017/8/31.
 */

public class ProvinceBean implements Serializable {

    /**
     * name : A-G
     * list : [{"pinyin":"an hui sheng","name":"安徽","id":340000,"parentId":1},{"pinyin":"bei jing","name":"北京","id":110000,"parentId":1},{"pinyin":"chong qing","name":"重庆","id":500000,"parentId":1},{"pinyin":"fu jian sheng","name":"福建","id":350000,"parentId":1},{"pinyin":"gan su sheng","name":"甘肃","id":620000,"parentId":1},{"pinyin":"guang dong sheng","name":"广东","id":440000,"parentId":1},{"pinyin":"guang xi zhuang zu zi zhi qu","name":"广西","id":450000,"parentId":1},{"pinyin":"gui zhou sheng","name":"贵州","id":520000,"parentId":1}]
     */

    private String name;
    private List<Province> list;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Province> getProvinces() {
        return list;
    }

    public void setProvinces(List<Province> list) {
        this.list = list;
    }

    public static class Province {
        /**
         * pinyin : an hui sheng
         * name : 安徽
         * id : 340000
         * parentId : 1
         */

        private String pinyin;
        private String name;
        private int id;
        private int parentId;

        public String getPinyin() {
            return pinyin;
        }

        public void setPinyin(String pinyin) {
            this.pinyin = pinyin;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getParentId() {
            return parentId;
        }

        public void setParentId(int parentId) {
            this.parentId = parentId;
        }
    }
}
